package com.qf.smartplatform.pojo;


import com.fasterxml.jackson.annotation.JsonInclude;
import com.qf.smartplatform.constans.ResultCode;
import com.qf.smartplatform.valigroup.insert;

import javax.validation.constraints.NotEmpty;
import java.util.List;

@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class SysRole {
  private Long roleId;
  @NotEmpty(message ="{\"code\": "+ ResultCode.PARAM_CONTENT_EMPTY +",\"msg\": \"没有传递角色名称\"}",groups = {insert.class})
  private String roleName;
  @NotEmpty(message ="{\"code\": "+ ResultCode.PARAM_CONTENT_EMPTY +",\"msg\": \"没有传递角色权限信息\"}",groups = {insert.class})
  private String roleKey;
  private Long roleSort;
  private String dataScope;
  private String status;
  private String createBy;
  private java.util.Date createTime;
  private String updateBy;
  private java.util.Date updateTime;
  private String remark;

  private List<SysMenu> menuList;

  public List<SysMenu> getMenuList() {
    return menuList;
  }

  public void setMenuList(List<SysMenu> menuList) {
    this.menuList = menuList;
  }

  public Long getRoleId() {
    return roleId;
  }

  public void setRoleId(Long roleId) {
    this.roleId = roleId;
  }


  public String getRoleName() {
    return roleName;
  }

  public void setRoleName(String roleName) {
    this.roleName = roleName;
  }


  public String getRoleKey() {
    return roleKey;
  }

  public void setRoleKey(String roleKey) {
    this.roleKey = roleKey;
  }


  public Long getRoleSort() {
    return roleSort;
  }

  public void setRoleSort(Long roleSort) {
    this.roleSort = roleSort;
  }


  public String getDataScope() {
    return dataScope;
  }

  public void setDataScope(String dataScope) {
    this.dataScope = dataScope;
  }


  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }


  public String getCreateBy() {
    return createBy;
  }

  public void setCreateBy(String createBy) {
    this.createBy = createBy;
  }


  public java.util.Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(java.util.Date createTime) {
    this.createTime = createTime;
  }


  public String getUpdateBy() {
    return updateBy;
  }

  public void setUpdateBy(String updateBy) {
    this.updateBy = updateBy;
  }


  public java.util.Date getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(java.util.Date updateTime) {
    this.updateTime = updateTime;
  }


  public String getRemark() {
    return remark;
  }

  public void setRemark(String remark) {
    this.remark = remark;
  }

}
